package com.fasteat.search.service;

import com.fasteat.search.entity.Page;
import com.fasteat.search.entity.SearchCondition;
import org.elasticsearch.search.sort.SortOrder;

import java.util.Map;

public interface MenuSearchService {
	/**
	 * 高亮分页排序搜索菜谱
	 *
	 * @param condition
	 * @param sortMap
	 * @return
	 */
	Page searchWithHighlightAndPageAndSort(SearchCondition condition, Map<String, SortOrder> sortMap);


	/**
	 * 通过ID删除菜谱
	 *
	 * @param id
	 * @return
	 */
	boolean removeMenuById(String id);
}
